package com.bigcms.mapper;

import com.bigcms.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {
    //登录
    User findUserByLogin(@Param("mobile") String mobile);

    //登录
    User findUserById(@Param("id") int id);

    //注册
    int insertUser(User user);

    //更新
    int updateUser(User user);

}
